package com.ruibang.glass.quality.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author: songJinKang
 * @CreateTime: 2023-08-30  14:11
 * @Description: TODO：缺陷
 * @Version: 1.0
 */
@Data
@TableName("g_defect")
public class Defect {

    @TableId(value = "defect_id", type = IdType.ASSIGN_UUID)
    @ApiModelProperty("缺陷id")
    private String defectId;

    @ApiModelProperty("缺陷名称")
    @NotBlank(message = "缺陷名称不可为空")
    private String defectName;

    @ApiModelProperty("缺陷code")
    @NotBlank(message = "缺陷code不可为空")
    private String defectCode;

    @ApiModelProperty("最大尺寸")
    @NotNull(message = "最大尺寸不可为空")
    private Double maxSize;

    @ApiModelProperty("最小尺寸")
    @NotNull(message = "最小尺寸不可为空")
    private Double minSize;

    @ApiModelProperty("最大层深")
    @NotNull(message = "最小层深不可为空")
    private Integer maxLayerDepth;

    @ApiModelProperty("最小层深")
    @NotNull(message = "最小层深不可为空")
    private Integer minLayerDepth;

    @ApiModelProperty("缺陷组id")
    @NotBlank(message = "缺陷组id不可为空")
    private String defectGroupId;

}
